﻿
 <sdk:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"	
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"                 
    mc:Ignorable="d" x:Class="Lottery.Client.SL.Controls.AddMember"
	Style="{StaticResource ChildWindowStyle_ConfirmWindow}">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Style TargetType="TextBox">
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="Margin" Value="2" />
                <Setter Property="Width" Value="100" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="Background" Value="#FF404040" />
                <Setter Property="SelectionBackground" Value="Green" />
            </Style>
            <Style TargetType="PasswordBox">
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="2" />
                <Setter Property="Background" Value="#FF404040" />
                <Setter Property="Foreground" Value="White" />
                <Setter Property="Width" Value="100" />
                <Setter Property="SelectionBackground" Value="Green" />
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid x:Name="gridMain">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid Margin="20,0">
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Margin="0,2,2,2" Text="账户类型" d:LayoutOverrides="Width, Height" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="White"/>
                <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">
                    <RadioButton x:Name="rbtAgent" Content="代理" Foreground="White" Margin="2" IsChecked="True"/>
                    <RadioButton x:Name="rbtMember" Content="会员" Foreground="White" Margin="2"/>
                </StackPanel>
                <TextBlock Margin="0,2,2,2" Text="账号" VerticalAlignment="Center" Foreground="White" Grid.Row="1" HorizontalAlignment="Right"/>
                <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="1">
                    <TextBox x:Name="tbUserName" TabIndex="0" />
                    <TextBlock TextWrapping="Wrap" Text="长度20位以下" Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2"/>
                </StackPanel>
                <TextBlock Margin="0,2,2,2" Text="昵称" VerticalAlignment="Center" Foreground="White" Grid.Row="2" HorizontalAlignment="Right"/>
                <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="2">
                    <TextBox x:Name="tbNickName" TabIndex="1" />
                    <TextBlock TextWrapping="Wrap" Text="长度20位以下" Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2"/>
                </StackPanel>
                <TextBlock x:Name="lbPassword" Margin="0,2,2,2" Text="密码" VerticalAlignment="Center" Foreground="White" Grid.Row="3" HorizontalAlignment="Right"/>
                <StackPanel x:Name="spPassword" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="3">
                    <PasswordBox x:Name="tbPassword" TabIndex="2" />
                    <TextBlock TextWrapping="Wrap" Text="长度6位以上 " Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2"/>
                </StackPanel>
                <TextBlock x:Name="lbPassword1" Margin="0,2,2,2" Text="确认密码" VerticalAlignment="Center" Foreground="White" Grid.Row="4" HorizontalAlignment="Right"/>
                <StackPanel x:Name="spPassword1" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="4">
                    <PasswordBox x:Name="tbPasswordConfrim" TabIndex="3"/>
                </StackPanel>
                <TextBlock Margin="0,2,2,2" Text="返点" VerticalAlignment="Center" Foreground="White" Grid.Row="5" HorizontalAlignment="Right"/>
                <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="5">
                    <toolkit:NumericUpDown x:Name="tbBackPct" IsEditable="False" Increment="0.5" Maximum="5" Foreground="White" Background="#FF404040" BorderBrush="Gray" DecimalPlaces="2" Width="50" VerticalAlignment="Center"/>
                    <TextBlock TextWrapping="Wrap" Text="%" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    <TextBlock x:Name="lbGiveBackDesc" TextWrapping="Wrap" Foreground="Gray" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,2,2,2"/>
                </StackPanel>
            </Grid>
            <Button x:Name="btnPost" Content="提交" Click="btnPost_Click" Width="75" Height="23" Margin="0" HorizontalAlignment="Right" Grid.Row="1" Style="{StaticResource buttonStyle0}" FontSize="13" d:LayoutOverrides="GridBox" />
            <TextBlock x:Name="lbErrorMsg" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center" Grid.Row="1" Foreground="Lime"/>
        </Grid>
        <Grid x:Name="gridLoading" Visibility="Collapsed" Background="#FF404040">
            <Border x:Name="border_Processing" VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2">
                <StackPanel Margin="5">
                    <TextBlock x:Name="lbWaiting" TextWrapping="Wrap" Foreground="#FFB7B7B7" Margin="5" HorizontalAlignment="Center"/>
                    <ProgressBar x:Name="progressBarLoading" Height="10" Width="150" IsIndeterminate="True"/>
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
    </sdk:ChildWindow>
